package com.example.base.net

import com.example.base.entity.AreaEntity
import com.example.base.entity.LoginEntity
import com.example.base.entity.Res
import retrofit2.http.GET
import retrofit2.http.POST
import retrofit2.http.Path
import retrofit2.http.Query

interface ApiService {
    @POST("/api/user/login")
    suspend fun getLogin(@Query("username")username:String,@Query("password")password:String):Res<LoginEntity>

    @GET("/api/parking-spaces/area/{areaId}")
    suspend fun getArea(@Path("areaId")areaId:Int):Res<AreaEntity>

}